package com.fast.fastenjoy.base.web.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.DispatcherServlet;

import com.fast.fastenjoy.base.web.utils.ActionContext;

public class DispatcherExServlet extends DispatcherServlet{

	private static final long serialVersionUID = 5994732036607071951L;

	@Override
	protected void doService(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		ActionContext.createActionContext(request, response);
		
		try{
			super.doService(request, response);
		}catch(Exception e){
		}
	}
	
	@Override
    public void destroy(){
		
		ActionContext.destroyActionContext();
		
		super.destroy();
	}
	
}
